﻿using System;
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("DomainTest")]

namespace DomainNamespace
{
    internal class QueueItem
    {
        private Object value;
        private QueueItem nextItem;
        private QueueItem prevItem;

        public QueueItem(Object _value = null, QueueItem _prevItem = null, QueueItem _nextItem = null)
        {
            value = _value;
            nextItem = _nextItem;
            prevItem = _prevItem;
        }

        public void setLeftItem(QueueItem _item)
        {
            prevItem = _item;
        }

        public void setRightItem(QueueItem _item)
        {
            nextItem = _item;
        }

        public QueueItem getNextItem()
        {
            return nextItem;
        }

        public QueueItem getPrevItem()
        {
            return prevItem;
        }

        public Object getValue()
        {
            return value;
        }

    }
}
